package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * SampleResultChar entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sample_result_char", catalog = "hospital")
public class SampleResultChar implements java.io.Serializable {

	// Fields

	private Long id;
	private Long version;
	private String name;
	private String value;
	private String low;
	private String hight;
	private String sampleId;
	private String item;
	private String unit;

	// Constructors

	/** default constructor */
	public SampleResultChar() {
	}

	/** minimal constructor */
	public SampleResultChar(Long version, String name, String value,
			String low, String hight, String sampleId) {
		this.version = version;
		this.name = name;
		this.value = value;
		this.low = low;
		this.hight = hight;
		this.sampleId = sampleId;
	}

	/** full constructor */
	public SampleResultChar(Long version, String name, String value,
			String low, String hight, String sampleId, String item, String unit) {
		this.version = version;
		this.name = name;
		this.value = value;
		this.low = low;
		this.hight = hight;
		this.sampleId = sampleId;
		this.item = item;
		this.unit = unit;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "value", nullable = false)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "low", nullable = false)
	public String getLow() {
		return this.low;
	}

	public void setLow(String low) {
		this.low = low;
	}

	@Column(name = "hight", nullable = false)
	public String getHight() {
		return this.hight;
	}

	public void setHight(String hight) {
		this.hight = hight;
	}

	@Column(name = "sample_id", nullable = false)
	public String getSampleId() {
		return this.sampleId;
	}

	public void setSampleId(String sampleId) {
		this.sampleId = sampleId;
	}

	@Column(name = "item")
	public String getItem() {
		return this.item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	@Column(name = "unit")
	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

}